package com.bigger.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bigger.dto.OrderPageDTO;
import com.bigger.entity.Order;
import com.bigger.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    //详情去看mapper下的xml文件（看不懂不能怪我我写的也抽象）
    List<OrderVO> page(OrderPageDTO orderPageDTO);
    //查询时只查询已完成订单的
    Double getTurnover(LocalDateTime start,LocalDateTime end);
}
